﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>Untitled Page</title>
</head>
<body>
	<form id="form1" runat="server">
	<div>
		<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
			ContextTypeName="AdventureWorksDataContext"
			Select="new (ProductID, Name, ProductNumber, MakeFlag, SafetyStockLevel, ReorderPoint, ListPrice, Size)"
			TableName="Products">
		</asp:LinqDataSource>
	</div>
	<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
		AutoGenerateColumns="False" DataSourceID="LinqDataSource1" BackColor="White" 
        BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        onrowupdated="GridView1_RowUpdated">
		<RowStyle BackColor="White" ForeColor="#003399" />
		<Columns>
			<asp:CommandField ShowSelectButton="True" />
			<asp:BoundField DataField="ProductID" HeaderText="ProductID" 
				ReadOnly="True" SortExpression="ProductID" />
			<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" 
				SortExpression="Name" />
			<asp:BoundField DataField="ProductNumber" HeaderText="ProductNumber" 
				ReadOnly="True" SortExpression="ProductNumber" />
			<asp:CheckBoxField DataField="MakeFlag" HeaderText="MakeFlag" 
				ReadOnly="True" SortExpression="MakeFlag" />
			<asp:BoundField DataField="SafetyStockLevel" HeaderText="SafetyStockLevel" 
				ReadOnly="True" SortExpression="SafetyStockLevel" />
			<asp:BoundField DataField="ReorderPoint" HeaderText="ReorderPoint" 
				ReadOnly="True" SortExpression="ReorderPoint" />
		    <asp:BoundField DataField="ListPrice" HeaderText="ListPrice" ReadOnly="True" 
                SortExpression="ListPrice" />
            <asp:BoundField DataField="Size" HeaderText="Size" ReadOnly="True" 
                SortExpression="Size" />
		</Columns>
	    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
	</asp:GridView>
	s<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False">
		<Columns>
			<asp:BoundField DataField="ProductID" HeaderText="ProductID" 
				ReadOnly="True" />
			<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" />
			<asp:BoundField DataField="ProductNumber" HeaderText="ProductNumber" 
				ReadOnly="True" />
			<asp:CheckBoxField DataField="MakeFlag" HeaderText="MakeFlag" 
				ReadOnly="True" />
			<asp:BoundField DataField="SafetyStockLevel" HeaderText="SafetyStockLevel" 
				ReadOnly="True" />
			<asp:BoundField DataField="ReorderPoint" HeaderText="ReorderPoint" 
				ReadOnly="True" />
		</Columns>
	</asp:GridView>
	</form>
</body>
</html>
